var date = new Date();
console.log(date);

var dateday = date.getDay()
console.log(dateday);